import axios from "@/utils/require"


//添加的地址信息
export function addAddressList(data:object){
    return axios({
        url: "/address/add",
        method: "post",
        data,
    })
}
//获取地址的列表信息
export function getAddressList(data:object) {
    return axios({
        url: "/address/list",
        method: "get",
        params: data
    })
}
// 修改地址
export function editAddressList(data:object) {
    return axios({
        url: "/address/update",
        method: "post",
        data
    })
}





//删除地址信息
export function delAddressList(data:{addressid:string}) {
    return axios({
        url: "/address/delete",
        method: "post",
        data
    })
}

